<?php
define('SEITCM_PLUGIN_URL', plugin_dir_url(__FILE__) );
define('SEITCM_PLUGIN_DIR', plugin_dir_path(__FILE__) );
define('SEITCM_INCLUDES_URL', SEITCM_PLUGIN_URL . 'includes/' );
define('SEITCM_INCLUDES_DIR', SEITCM_PLUGIN_DIR . 'includes/' );
define('SEITCM_CSS_URL', SEITCM_PLUGIN_URL . 'css/' );
define('SEITCM_CSS_DIR', SEITCM_PLUGIN_DIR . 'css/' );
define('SEITCM_IMG_URL', SEITCM_PLUGIN_URL . 'img/' );
define('SEITCM_IMG_DIR', SEITCM_PLUGIN_DIR . 'img/' );
define('SEITCM_JS_URL', SEITCM_PLUGIN_URL . 'js/' );
define('SEITCM_JS_DIR', SEITCM_PLUGIN_DIR . 'js/' );
define('SEITCM_UPLOAD_PATH', SEITCM_PLUGIN_DIR . 'cover/');
define('SEITCM_UPLOAD_URL', SEITCM_PLUGIN_URL . 'cover/');
define('SEITCM_MIN_YEAR_OLD', 3 );
define('SEITCM_DEFAULT_ROW_PER_PAGE', 20 );
define('SEITCM_MAX_LENGHT_SCHEDULE', 4 );
define('SEITCM_CURRENTCY', 'VNĐ');

global $wpdb;
define('SEITCM_TABLE_COURSES', $wpdb->prefix.'seitcm_courses' );
define('SEITCM_TABLE_CURRICULUM', $wpdb->prefix.'seitcm_curriculum' );
define('SEITCM_TABLE_CLASS', $wpdb->prefix.'seitcm_class' );
define('SEITCM_TABLE_FEES', $wpdb->prefix.'seitcm_fees' );
define('SEITCM_TABLE_SCHEDULE', $wpdb->prefix.'seitcm_schedule' );
define('SEITCM_TABLE_REGISTER', $wpdb->prefix.'seitcm_register' );
define('SEITCM_TABLE_ROLLUP', $wpdb->prefix.'seitcm_rollup' );
define('SEITCM_TABLE_SCORE', $wpdb->prefix.'seitcm_score' );

require_once SEITCM_INCLUDES_DIR . 'seitcm_courses_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_employers_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_students_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_class_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_class_schedule_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_class_rollup_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_class_scores_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_curriculum_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_register_dal.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_helper.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_header_view.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_custom_user_fields.php';
require_once SEITCM_INCLUDES_DIR . 'seitcm_pagination_link.php';

global $seitcm_schools;
 $seitcm_schools = array(
	// can add more item, but change or remove can make data fault, set status to 0 to disable it 
	array('key' => '1',
			'school'=>'Tiểu học Chu Văn An',
			'class' => array(
					array('key' => '1', 'classname' => 'Lớp 1'),
					array('key' => '2', 'classname' => 'Lớp 2'),
					array('key' => '3', 'classname' => 'Lớp 3'),
					array('key' => '4', 'classname' => 'Lớp 4'),
					array('key' => '5', 'classname' => 'Lớp 5'),
					),
			'status' => 1
			),
	array('key' => '2',
			'school'=>'Tiểu học Lê Quí Đôn',
			'class' => array(
					array('key' => '1', 'classname' => 'Lớp 1'),
					array('key' => '2', 'classname' => 'Lớp 2'),
					array('key' => '3', 'classname' => 'Lớp 3'),
					array('key' => '4', 'classname' => 'Lớp 4'),
					array('key' => '5', 'classname' => 'Lớp 5'),
					),
			'status' => 1
			),
	array('key' => '3',
			'school'=>'Tiểu học Mỹ Trà',
			'class' => array(
					array('key' => '1', 'classname' => 'Lớp 1'),
					array('key' => '2', 'classname' => 'Lớp 2'),
					array('key' => '3', 'classname' => 'Lớp 3'),
					array('key' => '4', 'classname' => 'Lớp 4'),
					array('key' => '5', 'classname' => 'Lớp 5'),
					),
			'status' => 0
			),
	array('key' => '4',
			'school'=>'THCS Kim Hồng',
			'class' => array(
					array('key' => '1', 'classname' => 'Lớp 6'),
					array('key' => '2', 'classname' => 'Lớp 7'),
					array('key' => '3', 'classname' => 'Lớp 8'),
					array('key' => '4', 'classname' => 'Lớp 9'),
					),
			'status' => 1
			),
	array('key' => '5',
			'school'=>'THCS Nguyễn Thị Lựu',
			'class' => array(
					array('key' => '1', 'classname' => 'Lớp 6'),
					array('key' => '2', 'classname' => 'Lớp 7'),
					array('key' => '3', 'classname' => 'Lớp 8'),
					array('key' => '4', 'classname' => 'Lớp 9'),
					),
			'status' => 1
			),
);

global $seitcm_learntime;
$seitcm_learntime = array(
	// can add more item, but change or remove can make data fault or conflict, set status to 0 to disable it 
	// Value is days of week, sperate by ',' and Sunday is '0'
	array('key' => '1', 'Value' => '2,4,6', 'duration' => '18h30', 'status' => 1),	
	array('key' => '2', 'Value' => '3,5,7', 'duration' => '18h30', 'status' => 1),
	array('key' => '3', 'Value' => '7,0', 'duration' => '7h30', 'status' => 1),	
	array('key' => '4', 'Value' => '7,0', 'duration' => '18h30', 'status' => 1),
);

global $seitcm_date_of_week;
$seitcm_date_of_week = array(
		array('key' => '0', 'Value' => __('Sunday','SEITCM'), 'sorthand' => __('Sun','SEITCM'), 'vn' => 'chủ nhật'),
		array('key' => '1', 'Value' => __('Sunday','SEITCM'), 'sorthand' => __('Sun','SEITCM'), 'vn' => 'chủ nhật'),
		array('key' => '2', 'Value' => __('Monday','SEITCM'), 'sorthand' => __('Mon','SEITCM'), 'vn' => 'thứ hai'),
		array('key' => '3', 'Value' => __('Tuesday','SEITCM'), 'sorthand' => __('Tue','SEITCM'), 'vn' => 'thứ ba'),
		array('key' => '4', 'Value' => __('Wednesday','SEITCM'), 'sorthand' => __('Wed','SEITCM'), 'vn' => 'thứ tư'),
		array('key' => '5', 'Value' => __('Thursday','SEITCM'), 'sorthand' => __('Thu','SEITCM'), 'vn' => 'thứ năm'),
		array('key' => '6', 'Value' => __('Friday','SEITCM'), 'sorthand' => __('Fri','SEITCM'), 'vn' => 'thứ sáu'),
		array('key' => '7', 'Value' => __('Saturday','SEITCM'), 'sorthand' => __('Sat','SEITCM'), 'vn' => 'thứ bảy'),
		array('key' => '8', 'Value' => __('Sunday','SEITCM'), 'sorthand' => __('Sun','SEITCM'), 'vn' => 'chủ nhật'),
);

global $seitcm_student_status;
$seitcm_student_status = array(
	array('key' => '1', 'Value' => __('New Student','SEITCM')),
	array('key' => '2', 'Value' => __('Old Student','SEITCM')),
	array('key' => '3', 'Value' => __('Leave Student','SEITCM')),
	array('key' => '4', 'Value' => __('Back Student','SEITCM')),
);

global $seitcm_score_skill;
$seitcm_score_skill = array(
	array('key' => '1', 'Value' => __('Readding','SEITCM')),
	array('key' => '2', 'Value' => __('Writing','SEITCM')),
	array('key' => '3', 'Value' => __('Listening','SEITCM')),
	array('key' => '4', 'Value' => __('Speaking','SEITCM')),
	array('key' => '5', 'Value' => __('All skill','SEITCM')),
);

global $seitcm_coefficient;
/*
 * Periodic Reviews / Examination Scores
 */
$seitcm_coefficient = array('periodic'=>4/10,'exam'=>6/10);
?>